package com.shrct.businessprocess.customerservice.impl;

import com.shrct.businessprocess.customerservice.RCRoutineServicePlan;
import com.shrct.businessprocess.customerservice.RCRoutineServicePlanDAO;
import com.shrct.businessprocess.customerservice.impl.RCRoutineServicePlanImpl;
import edu.fudan.mylang.pf.BaseService;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.customerservice.RCRoutineServicePlanDAO")
public class RCRoutineServicePlanDAOImpl extends BaseService implements RCRoutineServicePlanDAO {
  public RCRoutineServicePlan create(final Procedure1<? super RCRoutineServicePlan> preInit) {RCRoutineServicePlan rCRoutineServicePlan=RCRoutineServicePlanImpl.create(getObjectFactory());
    final Procedure1<RCRoutineServicePlan> _function = new Procedure1<RCRoutineServicePlan>() {
        public void apply(final RCRoutineServicePlan it) {
          preInit.apply(it);
        }
      };
    RCRoutineServicePlan _doubleArrow = ObjectExtensions.<RCRoutineServicePlan>operator_doubleArrow(rCRoutineServicePlan, _function);
    return _doubleArrow;
  }
  
  public void delete(final RCRoutineServicePlan value) {getObjectFactory().delete(value);
    
  }
}
